package io.kiki.sba.registry.exception;


public class MetaLeaderNotWarmupException extends SofaRegistryRuntimeException {

    private final String leader;

    private final long epoch;

    public MetaLeaderNotWarmupException(String leader, long epoch) {
        super("leader not warmup");
        this.leader = leader;
        this.epoch = epoch;
    }

    /**
     * Getter method for property <tt>leader</tt>.
     *
     * @return property value of leader
     */
    public String getLeader() {
        return leader;
    }

    /**
     * Getter method for property <tt>epoch</tt>.
     *
     * @return property value of epoch
     */
    public long getEpoch() {
        return epoch;
    }
}
